import { getcondata, getcity } from "../../utils/api";
const actions = {
  // 获取详情数据
  async getCon({ commit }) {
    const res = await getcondata();
    commit("modifyconsu", { res: res.list[0].car });
    // return res.list[0].car;
  },
  // 获取城市数据
  async getcitydata({ commit }) {
    const res = await getcity();
    commit("modifycity", { res: res.list[0].result[0].cities });
  },
};
export default actions;
